﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace X.WPF.Controls.Sample.Models
{
    public class ColorL
    {
        /// <summary>
        /// 创建RGB颜色构造器
        /// </summary>
        /// <param name="r"></param>
        /// <param name="g"></param>
        /// <param name="b"></param>
        public ColorL(byte r, byte g, byte b)
        {
            this.R = r;
            this.G = g;
            this.B = b;
        }

        /// <summary>
        /// 创建RGBA颜色构造器
        /// </summary>
        /// <param name="r"></param>
        /// <param name="g"></param>
        /// <param name="b"></param>
        /// <param name="a"></param>
        public ColorL(byte r, byte g, byte b, byte a)
        {
            this.R = r;
            this.G = g;
            this.B = b;
            this.A = a;
        }

        /// <summary>
        /// R值
        /// </summary>
        public readonly byte R;

        /// <summary>
        /// G值
        /// </summary>
        public readonly byte G;

        /// <summary>
        /// B值
        /// </summary>
        public readonly byte B;

        /// <summary>
        /// A值
        /// </summary>
        public readonly byte A;
    }
}
